package com.qyhl.module_practice.substreet;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeListBean;

import java.util.List;

public class SubStreetMainPresenter implements SubStreetMainContract.SubStreetMainPresenter {
    private SubStreetMainModel mModel;

    private SubStreetMainContract.SubStreetMainView mView;

     SubStreetMainPresenter(SubStreetMainContract.SubStreetMainView mainView) {
        this.mView = mainView;
        this.mModel = new SubStreetMainModel(this);
    }

    @Override
    public void getList(String instId) {
        mModel.getList(instId);
    }

    @Override
    public void setList(List<PracticeListBean> beanList) {
        mView.setList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
